﻿package com.findMoneyGame.pages.wrapper {

	import flash.events.MouseEvent;
	import flash.events.Event;
	import flash.display.MovieClip;

	import com.findMoneyGame.interfaceComponents.MyButton;

	
	public class SoundButton extends MyButton {
		private var _turn : Boolean = true;


		override protected function get activeFrame () { return turn ? "turnOnActive" : "turnOffActive"; }

		override protected function get deactiveFrame () { return turn ? "turnOnDeactive" : "turnOffDeactive"; }

		public function get turn () { return _turn; }

		public function set turn (value : Boolean) { _turn = value; }
		

		public function refreshActiveState() { gotoAndStop(activeFrame); }
	}
	
}
